//
//  UIButton+Extension.swift
//  XHWeibo
//
//  Created by craneteng on 16/5/15.
//  Copyright © 2016年 XHTeng. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(bgImgName:String?,buttonTitle:String?,buttonColor:UIColor) {
        self.init()

        setBackgroundImage(UIImage(named: bgImgName ?? ""), forState: UIControlState.Normal)
        setTitle(buttonTitle, forState: UIControlState.Normal)
        setTitleColor(buttonColor, forState: UIControlState.Normal)
    
    }
    
    
}
